/*******************************************************************************
*  file    : main.cpp
*  created : 25.06.2014
*  author  : Slyshyk Oleksiy (alexSlyshyk@gmail.com)
*******************************************************************************/

#include <QCoreApplication>
#include <QDebug>
#include <QTimer>

#include <utils.hpp>
#include "testutils.hpp"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    TestUtils* test = new TestUtils;
    QObject::connect(test, SIGNAL(endAllTests()), &a, SLOT(quit()) );
    QTimer::singleShot(0,test, SLOT(startTests()) );
    qDebug() << "Utils TEST. Build at " __DATE__ " on " __TIME__;

    int res = a.exec();

    qDebug() << "End of tests.";

    return res;
}
